package net.zjitc.mapper;


import net.zjitc.po.User;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Administrator on 2017/12/20.
 */
public interface UserMapper {
    /**
     * 方法名：与xml中的sql语句的id一致
     * 参数：与parameterType一致
     * 返回值:resultType一致
     * @param
     * @return
     */
    @Select("select * from user")
    List<User> findUsernameAndPassword();
@Insert("insert into user(username,password,email,phone,address) values(#{username},#{password},#{phone},#{email},#{address})")
    int addUser(User user);
}
